import { request } from '@umijs/max';
export async function paginationQueryDictData(params) {
    return request('/dict-data/page-query/list',{
        method: 'POST',
        data: params,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function createDictData(form){
    return request('/dict-data/create',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function updateDictData(form){
    return request('/dict-data/update',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function deleteDictData(form){
    return request('/dict-data/delete',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function queryDictDataByDictType(params) {
    return request('/dict-data/query/by-type',{
        method: 'GET',
        params:params,
    })
}